from django.urls import path
from .views import (
    InHospitalDoctorListCreateView, InHospitalDoctorRetrieveUpdateDestroyView,
    RemoteConsultDoctorListView, ApplyConsultView,
    ConsultRecordListView, ConsultRecordRetrieveUpdateView, upload_avatar
)
from. import views
urlpatterns = [
    # 院内医生相关路由
    path('in_hospital_doctors/', InHospitalDoctorListCreateView.as_view(), name='in-hospital-doctor-list-create'),
    path('in_hospital_doctors/<int:pk>/', InHospitalDoctorRetrieveUpdateDestroyView.as_view(), name='in-hospital-doctor-retrieve-update-destroy'),
    # 远程会诊医生相关路由
    path('remote_consult_doctors/', RemoteConsultDoctorListView.as_view(), name='remote-consult-doctor-list'),
    path('apply_consult/', ApplyConsultView.as_view(), name='apply-consult'),
    # 会诊记录相关路由
    path('consult_records/', ConsultRecordListView.as_view(), name='consult-record-list'),
    path('consult_records/<int:pk>/', ConsultRecordRetrieveUpdateView.as_view(), name='consult-record-retrieve-update'),
    path('upload_avatar/', upload_avatar, name='upload-avatar'),
    path('test_permission/', views.TestPermissionView.as_view()),
]